-- GENERATED SPELL FOR [Shattered Hand Guard] --


function spell0_19414(pUnit, Event) --@Counterstrike,n/a--
pUnit:FullCastSpellOnTarget(33960,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19414', 567, 1)
end

function spell1_19414(pUnit, Event) --@Soul Burden,n/a--
pUnit:FullCastSpellOnTarget(38879,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19414', 596, 1)
end

function spell2_19414(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19414', 586, 1)
end

function Sorts_19414(pUnit, Event)
local choix_sorts_19414 = math.random(0, 2)
if choix_sorts_19414 == 0 then
pUnit:RegisterEvent('spell0_19414', 1, 1)
end
if choix_sorts_19414 == 1 then
pUnit:RegisterEvent('spell1_19414', 1, 1)
end
if choix_sorts_19414 == 2 then
pUnit:RegisterEvent('spell2_19414', 1, 1)
end
end

function mob19414_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19414', math.random(1500, 3000), 1)
end

function mob19414_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19414_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19414_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19414, 1, 'mob19414_Action')
RegisterUnitEvent(19414, 2, 'mob19414_Leave')
RegisterUnitEvent(19414, 3, 'mob19414_Kill')
RegisterUnitEvent(19414, 4, 'mob19414_Die')
